<%@ page language="java" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%@taglib uri="/WEB-INF/debug-tags.tld" prefix="d"%>
<html>
  <head>
    <title>Analysis by Department</title>
	<link href="<s:url value="/css/admin.css"/>" rel="stylesheet" type="text/css">
  </head>
  
  <body>
  <s:form action="statdebugbydept" name="frm" method="get">
    <br><table width="78%"  border="1" align="center" cellpadding="0" cellspacing="0" style="border-collapse:collapse " frame="hsides">
  <tr>
    <td width="25%" align="right">Year:</td>
    <td width="27%"><s:select list="yearMap" headerKey="-1" headerValue="[ALL]" name="year"/> </td>
    <td align="right">Month:</td>
    <td><s:select list="monthMap" headerKey="-1" headerValue="[ALL]" name="month"/></td>
  </tr>
    <tr>
    <td width="25%" align="right">&nbsp;</td>
    <td width="27%">&nbsp;</td>
    <td width="12%" align="right">System:</td>
    <td width="36%"><s:select list="%{config.getSystem()}" headerKey="-1" headerValue="[ALL]" name="system"/></td>
  </tr>
</table>
    <br>
<center><input type="button" value=" Search1 " onClick="frm.submit();"/><br><br>
</center>
    <table width="98%"  border="1" align="center" cellpadding="0" cellspacing="0" style="border-collapse:collapse ">
      <tr align="center">
        <td width="11%" height="25"><strong>Department</strong></td>
        <td width="17%"><strong>BUG</strong></td>
        <td width="17%"><strong>Advisory</strong></td>
        <td width="16%"><strong>New Function</strong></td>
        <td width="15%"><strong>Update Function</strong></td>
        <td width="12%"><strong>Other</strong></td>
        <td width="12%"><strong>Total</strong></td>
      </tr>
      <s:iterator value="list">
      <tr align="center">
        <td height="25"><s:property value="%{getDeptName(deptCode)}"/> </td>
        <td align="center"><s:property value="bugCount"/> </td>
        <td align="center"><s:property value="advisoryCount"/></td>
        <td align="center"><s:property value="newfunctionCount"/></td>
        <td align="center"><s:property value="updateoldCount"/></td>
        <td align="center"><s:property value="otherCount"/></td>
        <td align="center"><s:property value="%{getCount()}"/> </td>
      </tr>
      </s:iterator>
	  <tr align="center">
        <td height="25"><strong>Total </strong></td>
        <td align="center"><s:property value="statCount.bugCount"/> </td>
        <td align="center"><s:property value="statCount.advisoryCount"/></td>
        <td align="center"><s:property value="statCount.newfunctionCount"/></td>
        <td align="center"><s:property value="statCount.updateoldCount"/></td>
        <td align="center"><s:property value="statCount.otherCount"/></td>
        <td align="center"><s:property value="%{statCount.getCount()}"/> </td>
      </tr>
   </table>
  </s:form></body></html>